
<%@ page import="weblicitacao.Lote" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'lote.label', default: 'Lote')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-lote" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-lote" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list lote">
			
				<g:if test="${loteInstance?.descricao}">
				<li class="fieldcontain">
					<span id="descricao-label" class="property-label"><g:message code="lote.descricao.label" default="Descricao" /></span>
					
						<span class="property-value" aria-labelledby="descricao-label"><g:fieldValue bean="${loteInstance}" field="descricao"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${loteInstance?.quantidadeDeItens}">
				<li class="fieldcontain">
					<span id="quantidadeDeItens-label" class="property-label"><g:message code="lote.quantidadeDeItens.label" default="Quantidade De Itens" /></span>
					
						<span class="property-value" aria-labelledby="quantidadeDeItens-label"><g:fieldValue bean="${loteInstance}" field="quantidadeDeItens"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${loteInstance?.prazoDeEntrega}">
				<li class="fieldcontain">
					<span id="prazoDeEntrega-label" class="property-label"><g:message code="lote.prazoDeEntrega.label" default="Prazo De Entrega" /></span>
					
						<span class="property-value" aria-labelledby="prazoDeEntrega-label"><g:fieldValue bean="${loteInstance}" field="prazoDeEntrega"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${loteInstance?.licitacao}">
				<li class="fieldcontain">
					<span id="licitacao-label" class="property-label"><g:message code="lote.licitacao.label" default="Licitacao" /></span>
					
						<span class="property-value" aria-labelledby="licitacao-label"><g:link controller="licitacao" action="show" id="${loteInstance?.licitacao?.id}">${loteInstance?.licitacao?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${loteInstance?.itens}">
				<li class="fieldcontain">
					<span id="itens-label" class="property-label"><g:message code="lote.itens.label" default="Itens" /></span>
					
						<g:each in="${loteInstance.itens}" var="i">
						<span class="property-value" aria-labelledby="itens-label"><g:link controller="item" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
			</ol>
			<g:form controller="item" action="create2">
				<fieldset class="form">
					<g:hiddenField name="idLote" value="${loteInstance?.id}" />
				</fieldset>
				<fieldset class="buttons">
					<g:actionSubmit controller="item" action="create2"
						class="save btn btn-danger" value="Adicionar Item" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
